<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<pre>
<?php
	$from = $_POST['from'];
	$to = $_POST['to'];
	$data=file_get_contents('./data.txt',true);
		$separator = "\r\n";
		$line = strtok($data, $separator);
		$br=array();
		$ar=array();
		while ($line !== false) 
		{
			array_push($br,$line);
			$line = strtok($separator);
		}
		for($i=($from-1),$j=0;$i<$to;$i++,$j++){
			$ar[$j] = $br[$i];
		}
		shuffle($ar);
		echo('<table border="0" width="1300">');
		
		for($i=0;$i<50;$i++){
			if($i%10==0) echo('<tr>');
			echo('<th align="left" style="font:Times New Roman">'.($i+1).".".$ar[$i].'</th>');
			if($i%10==9) echo('</tr>');
		}
		echo('</table>');
?>
</pre>
</body>
</html> 